﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ChoViet.CMS.ViewModels.EmailSystemViewModel>" %>
<%@ Import Namespace="ChoViet.Lib.Helpers" %>
<%@ Import Namespace="ChoViet.Lib.Paging" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Hệ thống gửi email thông báo sinh nhật
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%-- <form id="AdminForm" name="AdminForm" method="post" action="/EmailSystem/IndexCms">
    <input type="text" value="" />
    <input type="submit" value="Gửi mail" />
 </form>--%>
 <%if (ViewData["MessageInfo"] == null)
      { %>
    <% using (Html.BeginForm("IndexCms", "EmailSystem", FormMethod.Post, new { id = "adminForm" }))
       {%>
    <%= Html.ValidationSummary(true)%>
    <table class="admintable" width="100%">
        <tbody>
            <tr>
                <td class="key">
                     Chọn số lượng email mỗi đợt gửi (<font color="red">*</font>)
                </td>
                <td>
                    <select id="NumberEmail" name="NumberEmail" class="required" title="Chọn số lượng email gửi mỗi đợt">
                        <option value="">Chọn số lượng</option>
                        <option value="5">5 email</option>
                        <option value="10">10 email</option>
                        <option value="20">20 email</option>
                        <option value="500">50 email</option>
                        <option value="100">100 email</option>
                        <option value="200">200 email</option>
                        <option value="500">500 email</option>
                        <option value="600">600 email</option>
                        <option value="700">700 email</option>
                        <option value="800">800 email</option>
                        <option value="1000">1000 email</option>
                        <option value="5000">5000 email</option>
                        <option value="10000">10000 email</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="key">
                     Chọn khách hàng gửi email (<font color="red">*</font>)
                </td>
                <td>
                    <select id="CustomerType" name="CustomerType" class="required" title="Chọn loại khách hàng">
                        <option value="">Chọn khách hàng</option>
                        <option value="1">KH đã đăng ký tài khoản</option>
                        <option value="2">KH chưa đăng ký tài khoản</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" id="btnSave" value="Bắt đầu gửi email" name ="btnSave"/>
                </td>
            </tr>            
        </tbody>
    </table>
    <%}
  } %>
  <script type ="text/javascript">
      $(document).ready(function() {
          $("#adminForm").validate();
      });
  </script>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
<%--<td>
	<%= Html.Toolbar("Thêm mới", "/Tag/CreateCms", "new") %>
 </td>--%>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
&nbsp;
Hệ thống gửi email cho khách hàng
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
<%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>  
</asp:Content>
